package dhbw.GUI.Panels;

import java.awt.BorderLayout;
import java.awt.CardLayout;
import java.awt.Color;
import java.awt.GridLayout;
import java.awt.Panel;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTabbedPane;

import dhbw.Data.Language;
import dhbw.Data.Notenspiegel;
import dhbw.Data.Settings;
import Main.MyController;

public class PanelStudent extends JPanel{

	private MyController myc;
	private Notenspiegel ns;
	
	public PanelStudent(MyController myc)
	{
		this.myc = myc;
		this.ns = myc.getNotenspiegel();
		buildPanel();
	}
	
	/**
	 * Build Panel
	 */
	private void buildPanel()
	{
		this.setBackground(Settings.BG_COLOR);
		this.setLayout(new BorderLayout());
		JTabbedPane tabbedPane = new JTabbedPane();
		PanelStudentSemesteruebersicht semesterPanel = new PanelStudentSemesteruebersicht(this.myc);
		PanelStudentGesamtuebersicht gesamtPanel = new PanelStudentGesamtuebersicht(this.myc);
		tabbedPane.addTab(Language.SEMESTERPERFORMANCE[myc.getLanguage()], semesterPanel);
		tabbedPane.addTab(Language.PERFORMANCEOVERVIEW[myc.getLanguage()], gesamtPanel);
		this.add("Center",tabbedPane);
	}
}
